<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
</head>
<script src="__COMJS__jquery-1.10.1.min.js"></script>
<body>
<input type="button" value="点击购买" id="click_buy">
</body>
<script type="text/javascript">
    $("#click_buy").click(function () {
        $.ajax({
            url:"{:U('redis_qianghuo')}",
            dataType:"json",
            type:"post",
            data:{},
            success:function (data) {
                console.log(data);
            }
        })
    })
</script>
</html>